package com.ruoyi.dailyoperations.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.dailyoperations.mapper.ConferenceReceptionMapper;
import com.ruoyi.dailyoperations.domain.ConferenceReception;
import com.ruoyi.dailyoperations.service.IConferenceReceptionService;

/**
 * 会议室招待Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-09-14
 */
@Service
public class ConferenceReceptionServiceImpl implements IConferenceReceptionService 
{
    @Autowired
    private ConferenceReceptionMapper conferenceReceptionMapper;

    /**
     * 查询会议室招待
     * 
     * @param id 会议室招待主键
     * @return 会议室招待
     */
    @Override
    public ConferenceReception selectConferenceReceptionById(Long id)
    {
        return conferenceReceptionMapper.selectConferenceReceptionById(id);
    }

    /**
     * 查询会议室招待列表
     * 
     * @param conferenceReception 会议室招待
     * @return 会议室招待
     */
    @Override
    public List<ConferenceReception> selectConferenceReceptionList(ConferenceReception conferenceReception)
    {
        return conferenceReceptionMapper.selectConferenceReceptionList(conferenceReception);
    }

    /**
     * 新增会议室招待
     * 
     * @param conferenceReception 会议室招待
     * @return 结果
     */
    @Override
    public int insertConferenceReception(ConferenceReception conferenceReception)
    {
        return conferenceReceptionMapper.insertConferenceReception(conferenceReception);
    }

    /**
     * 修改会议室招待
     * 
     * @param conferenceReception 会议室招待
     * @return 结果
     */
    @Override
    public int updateConferenceReception(ConferenceReception conferenceReception)
    {
        return conferenceReceptionMapper.updateConferenceReception(conferenceReception);
    }

    /**
     * 批量删除会议室招待
     * 
     * @param ids 需要删除的会议室招待主键
     * @return 结果
     */
    @Override
    public int deleteConferenceReceptionByIds(Long[] ids)
    {
        return conferenceReceptionMapper.deleteConferenceReceptionByIds(ids);
    }

    /**
     * 删除会议室招待信息
     * 
     * @param id 会议室招待主键
     * @return 结果
     */
    @Override
    public int deleteConferenceReceptionById(Long id)
    {
        return conferenceReceptionMapper.deleteConferenceReceptionById(id);
    }
}
